package design.action.mediator;

import lombok.Data;

/**
 * @author zxs
 * @since 2020/05/27
 */
@Data
public abstract class AbstractColleague implements Colleague {

    private String name;
    private Mediator mediator;

    public AbstractColleague(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

    @Override
    public void getMessage(String message) {
        System.out.println(name+" get message: "+message);
    }
}
